DateTimeEditors for WinRT
Setting the Minimum and Maximum Calendar Dates

You can change the dates that the user can choose by setting the MinimumDate and MaximumDate properties in code.

Add the following code to your application to set the minimum and maximum calendar dates:

C#
Copy Code
c1DTS1.MinDate = new DateTime( 1915, 06, 15);
c1DTS1.MaxDate = new DateTime( 2015, 06, 15);

Visual Basic
Copy Code
 c1DTS1.MinDate = New DateTime(1915, 6, 15)
 c1DTS1.MaxDate = New DateTime(2015, 6, 15)
See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback